<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">商品库</label>
            <div class="layui-input-block">
                <input type="hidden" name="goods_library_id" class="layui-input" autocomplete="off" lay-verify="required" placeholder="请输入商品库id" value="{$row.goods_library_id}">
                <input type="text" readonly class="layui-input" autocomplete="off" lay-verify="required" placeholder="请输入商品库id" value="{$library.name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">选择商品</label>
            <div class="layui-input-block">
                <div placeholder="选择商品" data-xm-select id="xmselect" data-xm-url="goods/list" data-xm-name="goods_id" data-xm-radio="false" data-xm-selected="{$row.goods_id}" data-xm-disabled="true"></div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input type="radio" name="status" value="1" title="展示" {if $row.status==1}checked{/if}>
                <input type="radio" name="status" value="0" title="不展示" {if $row.status==0}checked{/if}>
                <input type="radio" name="status" value="2" title="待审核" {if $row.status==2}checked{/if}>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>


<script>
    var library_id = {$row.goods_library_id}
</script>